package com.ruoyi.driver.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车辆和路线中间对象 carowner_middle
 * 
 * @author Wevon
 * @date 2024-08-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CarownerMiddle extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /*车主ID*/
    @Excel(name = "车主ID")
    private Long carOwnerId;

    /** 车辆ID */
    @Excel(name = "车辆ID")
    private Long carDetialsId;

    /** 路线ID */
    @Excel(name = "路线ID")
    private Long vehicleRouteId;

    @Excel(name = "运输类型")
    private String traffic;

    /** 逻辑删0没删,1删除 */
    private String del;

    /*路线表*/
    private CarownerVehicleroute carownerVehicleroute;

    public void setCarDetialsId(Long carDetialsId) 
    {
        this.carDetialsId = carDetialsId;
    }

    public Long getCarDetialsId() 
    {
        return carDetialsId;
    }
    public void setVehicleRouteId(Long vehicleRouteId) 
    {
        this.vehicleRouteId = vehicleRouteId;
    }

    public Long getVehicleRouteId() 
    {
        return vehicleRouteId;
    }
    public void setDel(String del) 
    {
        this.del = del;
    }

    public String getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("carDetialsId", getCarDetialsId())
            .append("vehicleRouteId", getVehicleRouteId())
            .append("del", getDel())
            .toString();
    }
}
